package test;

import java.io.File;
import java.lang.reflect.Method;

import org.lex.depends.core.classloader.FileSystemClassLoader;

public class CL {

	/**
	 * @param args
	 * @throws ClassNotFoundException
	 * @throws NoSuchMethodException
	 * @throws SecurityException
	 */
	public static void main(String[] args) throws ClassNotFoundException, SecurityException, NoSuchMethodException {
		File dir = new File("D:\\tmp");
		FileSystemClassLoader c = new FileSystemClassLoader(dir);
		String className = "org.apache.axis.encoding.Base64";

		Class<?> clz = c.loadClass(className);
		Method encode = clz.getMethod("encode", byte[].class);
		System.out.println(clz + "\n" + encode);
	}
}
